Esophageal pressure measurement guided ventilation